// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2024-11-12 18:34:15
// 生成路径: internal/app/system/service/order_types.go
// 生成人：zhou
// desc:订单类型
// company:云南奇讯科技有限公司
// ==========================================================================

package service

import (
	"context"

	"github.com/tiger1103/gfast/v3/internal/app/system/model"
)

type IOrderTypes interface {
	List(ctx context.Context, req *model.OrderTypesSearchReq) (res *model.OrderTypesSearchRes, err error)
	GetById(ctx context.Context, Id int) (res *model.OrderTypesInfoRes, err error)
	Add(ctx context.Context, req *model.OrderTypesAddReq) (err error)
	Edit(ctx context.Context, req *model.OrderTypesEditReq) (err error)
	Delete(ctx context.Context, Id []int) (err error)
}

var localOrderTypes IOrderTypes

func OrderTypes() IOrderTypes {
	if localOrderTypes == nil {
		panic("implement not found for interface IOrderTypes, forgot register?")
	}
	return localOrderTypes
}

func RegisterOrderTypes(i IOrderTypes) {
	localOrderTypes = i
}
